<?php

namespace app\modules\groups\models;

use Yii;

/**
 * This is the model class for table "epay_useringroups".
 *
 * @property integer $userGroupID
 * @property integer $user_id
 * @property integer $groupID
 * @property integer $isLeader
 * @property integer $isVirtualGroupUser
 * @property string $managerGroup
 */
class Useringroups extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
         return '{{%useringroups}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'groupID'], 'required'],
            [['user_id', 'groupID', 'isLeader', 'isVirtualGroupUser'], 'integer'],
            [['managerGroup'], 'string', 'max' => 500],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'userGroupID' => '用户组ID',
            'user_id' => '用户ID',
            'groupID' => '组织ID',
            'managerGroup' => '组织名称',
        ];
    }
}
